﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.Composition;

namespace WebFabricator.org.Composition
{
    /// <summary>
    /// Decorators modify the output of any object that supports IResolveToContent
    /// </summary>
    [InheritedExport(typeof(IDecorator<>))]
    public interface IDecorator<T>
    {
        IResolveToContent Decorate(IDecoratorContext context, IWebFabric<T> fabric, IResolveToContent content);
    }
}
